package com.example.tbtx.tbtx.module;

public class Goods {
    public boolean hasA;
    public boolean hasB;

    @Override
    public String toString() {
        return "Goods{" +
                "hasA=" + hasA +
                ", hasB=" + hasB +
                '}';
    }

    private Goods() {

    }

    public static class Builder {
        public boolean hasA;
        public boolean hasB;

        public Builder addA() {
            hasA = true;
            return this;
        }

        public Builder addB() {
            hasB = true;
            return this;
        }

        public Goods build() {
            Goods goods = new Goods();
            goods.hasA = hasA;
            goods.hasB = hasB;
            return goods;
        }

    }
}
